<?php
class Admin_check_lib{
    function __construct(){
        $this->ci =& get_instance();
		$this->ci->load->library('session');
        
    }
    
    function checkLogin()
	{    
        if($this->ci->session->userdata('admin') == '')
		{
			redirect('admin');
            //die();
		}
    }
    
    
} 